Skip to content

Reduce duplicated .language-btn base styles to resolve review-thread override issue#263

Merged
DavidKRK merged 2 commits into
gh-pagesfrom
copilot/fix-comments-in-review-thread
Jun 2, 2026
Merged

Reduce duplicated .language-btn base styles to resolve review-thread override issue#263
DavidKRK merged 2 commits into
gh-pagesfrom
copilot/fix-comments-in-review-thread

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Jun 2, 2026

This PR addresses the remaining review-thread feedback on PR #260: the early global .language-btn definition was partially overridden later in style.css, creating merged/fragile styling behavior.
The change narrows the early rule to truly shared base properties and removes redundant hover/active styling from that block.

  • What changed

    • Consolidated shared base in early .language-btn block
      • Kept only shared properties: min-height, min-width, font-size.
      • Removed properties redefined later (background, border, color, padding, border-radius, cursor, transition).
  • Override cleanup

    • Removed redundant early state styles
      • Deleted the early .language-btn:hover, .language-btn.active block that was superseded by the later “Langues toggle” definitions.
  • Resulting behavior

    • Clearer style ownership
      • Base accessibility sizing remains centralized.
      • Variant/state styling is defined in one effective place, reducing accidental style merging.
/* Before: mixed base + soon-overridden visual/state styles */
.language-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  padding: 0.75rem 1.25rem;
  min-height: 44px;
  min-width: 44px;
  border-radius: 2rem;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
}
.language-btn:hover,
.language-btn.active { ... }

/* After: shared base only */
.language-btn {
  min-height: 44px;
  min-width: 44px;
  font-size: 0.9rem;
}

@bolt-new-by-stackblitz
Copy link
Copy Markdown

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

Copilot AI changed the title [WIP] Fix code based on review comments Reduce duplicated .language-btn base styles to resolve review-thread override issue Jun 2, 2026
Copilot AI requested a review from DavidKRK June 2, 2026 23:00
@DavidKRK DavidKRK marked this pull request as ready for review June 2, 2026 23:02
Copilot AI review requested due to automatic review settings June 2, 2026 23:02
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR refines the CSS cascade for the language toggle by stripping the earlier .language-btn rule down to genuinely shared, accessibility-driven sizing, and removing an early hover/active rule that previously merged with later definitions.

Changes:

  • Reduced the earlier .language-btn block to shared base properties (min-height, min-width, font-size) to avoid partial overrides later in the file.
  • Removed the earlier .language-btn:hover, .language-btn.active rule so hover/active styling is owned by the later “Langues toggle” section.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown
Owner

@DavidKRK DavidKRK left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nettoyage CSS propre et bien ciblé. ✅

Le premier bloc .language-btn ne conserve que les propriétés d'accessibilité (min-height/min-width), ce qui est correct — la mise en forme visuelle et les états hover/active sont gérés plus bas dans la section dédiée.

Cela évite les conflits de cascade et centralise la responsabilité du style. Bonne pratique. Approuvé. 👍

@DavidKRK DavidKRK merged commit ad47f8c into gh-pages Jun 2, 2026
12 of 13 checks passed
@DavidKRK DavidKRK deleted the copilot/fix-comments-in-review-thread branch June 2, 2026 23:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants